<template>
	<view>
		<view class="holder_list">
			<view class="holder_item" v-for="item in list">
				<view class="flex_align_center">
					<image :src="item.avatar"></image>
					<view class="holder_info">
						<view class="holder_tit">{{item.nickname}}</view>
						<view>ID: {{item.member_id}}</view>
						<view>股份：{{item.stock_percent}}%</view>
					</view>
				</view>
				<view class="holder_time">所在区域：{{item.all_address_name}}</view>
				<view class="holder_time">加入日期：{{item.created_at}}</view>
			</view>
			<view class="empty_loading">
				<image v-if="isloading" src="/static/business/loading.gif" ></image>
				<view v-if="ismore">到底了~</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page: 0,
				isloading: false,
				ismore: false,
				list: []
			};
		},
		onLoad() {
			this.getList();
		},
		// onReachBottom() {
		// 	this.getList();
		// },
		methods: {
			getList(){
				this.page++;
				this.isloading = true;
				this.$axios('RegionalService/shareholderList', "POST", 'regional').then(res => {
					this.isloading=false;
					if (res.data.code == 200) {
						this.list = [...this.list,...res.data.data.list];
						this.ismore = res.data.data.list.length<=0;
					}
				})
			},
		}
	}
</script>

<style lang="scss">
page{
	background: #FBF8FE;
	padding-bottom: 100rpx;
}
.holder_list{
	padding: 20rpx;
	.holder_item{
		border: 2rpx solid #eee;
		border-radius: 10rpx;
		padding: 20rpx;
		margin-bottom: 20rpx;
		box-shadow: 0px 12rpx 16rpx 0px rgba(0, 0, 0, 0.1);
		image{
			width: 100rpx;
			height: 100rpx;
			border-radius: 10rpx;
			margin-right: 20rpx;
			flex-shrink: 0;
		}
		.holder_tit{
			font-weight: bold;
			margin-bottom: 6rpx;
			font-size: 30rpx;
		}
		.holder_time{
			font-size: 24rpx;
			color: #999;
			margin-top: 10rpx;
		}
	}
}
</style>
